Creating elements (e.g. user blocks) for library
The element required within a library must be created within a →project. Create this element as you would any element (e.g. a →POU or →data type) that you would use within the project but with the following difference:
Use namespaces for the element per library – if the usage of a namespace is possible.
The usage of →namespaces ensures the unique identification of the elements. This will help to avoid name conflicts, when e.g. user blocks from the library are used in the application. Recommendation by Neuron for such namespaces: |
Neuron Power Engineer supports the following elements for a library:
Language |
Starting points for more information |
---|---|
|
Supported ST-syntax, in particular: Declaration of a function block in ST Declaration of a function in ST |
Restriction →C or →C++ blocks (see "Integrating C-code and/or C++-code into the application (deprecated)") are not supported as elements for a library. Valid for logi.SAFE libraries and logi.WEB libraries: See "Peculiarities for logi.SAFE/logi.WEB libraries". |